/*

$Header: /app/shared/RCS/irix-5.2/seawifsd/src/hdfio/Shared.V4.2/L012_Util/util/osc/tlm.h,v 4.13 1995/01/25 17:35:12 seawifsd Exp seawifsd $
$Log: tlm.h,v $
Revision 4.13  1995/01/25 17:35:12  seawifsd
appended two constants at the end of each limit definitions to include to
limit values to check against when the power is off.

Revision 4.12  1995/01/18 14:40:28  seawifsd
added definitions of the limits for the instrument telemetry fields.

Revision 4.11  1995/01/18 13:59:59  seawifsd
updated conversion slope/intercept based on the latest information
from Fred.

Revision 4.10  1995/01/17 19:58:43  seawifsd
Jan. 17, 1994, V4.10

Revision 4.1  1995/01/17 14:14:57  seawifsd
Jan. 9, 1994, 4.0

Revision 3.3  1994/11/08 18:47:01  seawifsd
Nov. 8, 1994, 3.3a3

Revision 3.3  1994/11/08 15:04:58  seawifsd
Nov. 8, 1994, 3.3a2

Revision 1.2  1994/05/10 18:52:01  seawifst
May 6, 1994 version 1.2

Revision 1.1  1994/04/19 13:49:30  seawifst
Initial revision


 */


#include "tlm_proto.h"
#include "ecv.h"
#include "eng_qual.h"
/*
   Following macros define the Word_Offset, Bit_Offset,
   and Length_in_Bits of each field in the 44 words
   instrument telemetry. All offsets are reference to 0
   Bit_Offset is counted from Least Significant Bit.
   For example:                                     
     Word_Offset 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
       0          0  0  0  0  0  0 0 0 1 1 1 1 1 1 1 1
       1          0  0  0  0  0  0 0 0 0 1 0 0 0 0 0 0
 */

#define TLM_WORD_LENGTH 16
#define TLM_WORD_OFFSET 8

#ifdef __ANSI_CPP__
#define INST_ANA(n)    INST_ANA##n
#define INST_DIS(n)    INST_DIS##n
#else
#define INST_ANA(n)    INST_ANA##n
#define INST_DIS(n)    INST_DIS##n
#endif /* ANSI */

#define TLM_DUMMY    0,0,0
#define TLM_DUMMY_ECV    NECT0,0,0
#define TLM_WORD_OFFSET_MIN   0
#define TLM_WORD_OFFSET_MAX   43
#define TLM_ANALOG_START_OFFSET   7
#define TLM_ANALOG_MAX_OFFSET   39
#define TLM_DISCRETE_START_OFFSET  4
#define TLM_MAX_ANA_ENTRIES   40
#define TLM_MAX_DIS_ENTRIES   32


/* maximum number of analog valid field: INST_ANA1 -> INST_ANA32	*/
/* !!! excluding MSEC_GPS field !!!					*/
#define TLM_ANALOG_MAX_VALID   32
/* maximum number of discrete valid field: INST_DIS1 -> INST_DIS22	*/
#define TLM_DISCRETE_MAX_VALID   22
/* define MSEC_GPS information on analog table(defined in tlm_local.h)	*/
#define TLM_MSEC_GPS    39

#define TLM_DIS_ECV    DECT1,0.0,0.0

/* define mapping for different functions				*/
#define GET_TLM_ANA_ENG_VALUE(tlm,n) get_tlm_eng_value(tlm,n,n##_ECV)
#define GET_TLM_DIS_ENG_VALUE(tlm,n) get_tlm_eng_value(tlm,n,TLM_DIS_ECV)
#define GET_TLM_ANA_RAW_VALUE(tlm,n) get_tlm(tlm,n)
#define GET_TLM_DIS_RAW_VLAUE(tlm,n) get_tlm(tlm,n)
#define GET_TLM_RAW_VALUE(tlm,n) get_tlm(tlm,n)
#define GET_TLM_NAME(n)   get_tlm_name(n)
/*----------------------------------------------------------------------------*/
/* Time Stamp of Sync Pulse in Scan Line */
#define MSEC_GPS    0,0,32
#define MSEC_GPS_ECV    AECT2,0.0,0.0

/* discrete instrument telemetry macro definition */
#define DIS_PAD_1    4,9,1
#define DIS_PAD_2    4,8,1
#define SERVO_A_B_SELECT   4,7,1
#define ANG_MOM_COMP_ON    4,6,1
#define SERVO_A_LOCK    4,5,1
#define SERVO_B_LOCK    4,4,1
#define TIMING_A_B_SELECT   4,3,1
#define TILT_A_ON    4,2,1
#define TILT_B_ON    4,1,1
#define TILT_TELEMETRY_ON   4,0,1

#define DIS_PAD_3    5,9,1
#define DIS_PAD_4    5,8,1
#define STOW_ON     5,7,1
#define STOW_ALIGNED    5,6,1
#define HEATERS_ENABLE    5,5,1
#define SOLAR_DOOR_STATUS   5,4,1
#define ANALOG_POWER_ON    5,3,1
#define TILT_PLATFORM_LIMIT   5,2,1
#define TILT_BASE_LIMIT    5,1,1
#define TILT_NADIR_ALIGNED   5,0,1

#define DIS_PAD_5    6,9,1
#define DIS_PAD_6    6,8,1
#define TILT_AFT_ALIGNED   6,7,1
#define TILT_FORWARD_ALIGNED   6,6,1
#define DATA_MODE_SELECT   6,5,1
#define HALF_ANG_MIRROR_SIDE   6,4,1
#define IMAGE_DATA_SYNC_VALID   6,3,1
#define ANG_MOM_COMP_AT_SPEED   6,2,1
#define DIS_SPARE_23    6,1,0
#define DIS_SPARE_24    6,0,0

/* analog instrument telemetry macro definition */
#define BAND_1_2_FPA_TEMPERATURE  7,0,8
#define BAND_1_2_FPA_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define BAND_1_2_FPA_TEMPERATURE_LIMITV  LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define BAND_3_4_FPA_TEMPERATURE  8,0,8
#define BAND_3_4_FPA_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define BAND_3_4_FPA_TEMPERATURE_LIMITV  LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define BAND_5_6_FPA_TEMPERATURE  9,0,8
#define BAND_5_6_FPA_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define BAND_5_6_FPA_TEMPERATURE_LIMITV  LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define BAND_7_8_FPA_TEMPERATURE  10,0,8
#define BAND_7_8_FPA_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define BAND_7_8_FPA_TEMPERATURE_LIMITV  LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define TELESCOPE_MOTOR_TEMPERATURE  11,0,8
#define TELESCOPE_MOTOR_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define TELESCOPE_MOTOR_TEMPERATURE_LIMITV LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define TILT_BASE_TEMPERATURE   12,0,8
#define TILT_BASE_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define TILT_BASE_TEMPERATURE_LIMITV  LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define TILT_PLATFORM_TEMPERATURE  13,0,8
#define TILT_PLATFORM_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define TILT_PLATFORM_TEMPERATURE_LIMITV LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define HALF_ANG_MOTOR_TEMPERATURE  14,0,8
#define HALF_ANG_MOTOR_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define HALF_ANG_MOTOR_TEMPERATURE_LIMITV LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define POWER_SUPPLY_A_INPUT_CURRENT  15,0,8
#define POWER_SUPPLY_A_INPUT_CURRENT_ECV AECT1,0.02,  0.26
#define POWER_SUPPLY_A_INPUT_CURRENT_LIMITV LFLAG1,0.26,5.36,1.0,3.0,-0.05,0.35
#define POWER_SUPPLY_B_INPUT_CURRENT  16,0,8
#define POWER_SUPPLY_B_INPUT_CURRENT_ECV AECT1,0.02,  0.26
#define POWER_SUPPLY_B_INPUT_CURRENT_LIMITV LFLAG1,0.26,5.36,1.0,3.0,-0.05,0.35
#define POWER_SUPPLY_POS_15_VOLT_ANALOG  17,0,8
#define POWER_SUPPLY_POS_15_VOLT_ANALOG_ECV AECT1,0.075,  0.0
#define POWER_SUPPLY_POS_15_VOLT_ANALOG_LIMITV LFLAG2,0.0,19.125,15.0,15.5,-0.7,0.7
#define POWER_SUPPLY_NEG_15_VOLT_ANALOG  18,0,8
#define POWER_SUPPLY_NEG_15_VOLT_ANALOG_ECV AECT1,-0.075, 0.0
#define POWER_SUPPLY_NEG_15_VOLT_ANALOG_LIMITV LFLAG2,-19.125,0.0,-15.5,-15.0,-0.7,0.7
#define POWER_SUPPLY_POS_5_VOLT_LOGIC  19,0,8
#define POWER_SUPPLY_POS_5_VOLT_LOGIC_ECV AECT1,0.025,  0.0
#define POWER_SUPPLY_POS_5_VOLT_LOGIC_LIMITV LFLAG2,0.0,6.375,4.9,5.6,-0.5,0.5
#define POWER_SUPPLY_TEMPERATURE  20,0,8
#define POWER_SUPPLY_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define POWER_SUPPLY_TEMPERATURE_LIMITV  LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define BAND_1_2_POST_AMP_TEMPERATURE  21,0,8
#define BAND_1_2_POST_AMP_TEMPERATURE_ECV AECT1,-0.2667,66.667
#define BAND_1_2_POST_AMP_TEMPERATURE_LIMITV LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define SERVO_DRIVER_TEMPERATURE  22,0,8
#define SERVO_DRIVER_TEMPERATURE_ECV  AECT1,-0.2667,66.667
#define SERVO_DRIVER_TEMPERATURE_LIMITV  LFLAG0,-1.334,66.667,5.0,45.0,5.0,45.0
#define POWER_SUPPLY_POS_30_VOLT_SERVO  23,0,8
#define POWER_SUPPLY_POS_30_VOLT_SERVO_ECV AECT1,0.15,  0.0
#define POWER_SUPPLY_POS_30_VOLT_SERVO_LIMITV LFLAG2,0.0,38.25,28.5,31.0,-1.0,1.0
#define POWER_SUPPLY_POS_21_VOLT_SERVO  24,0,8
#define POWER_SUPPLY_POS_21_VOLT_SERVO_ECV AECT1,0.1044,  0.0
#define POWER_SUPPLY_POS_21_VOLT_SERVO_LIMITV LFLAG2,0.0,26.622,20.0,22.0,-1.0,1.0
#define POWER_SUPPLY_NEG_21_VOLT_SERVO  25,0,8
#define POWER_SUPPLY_NEG_21_VOLT_SERVO_ECV AECT1,-0.1044, 0.0
#define POWER_SUPPLY_NEG_21_VOLT_SERVO_LIMITV LFLAG2,-26.622,0.0,-22.0,-20.0,-1.0,1.0
#define POWER_SUPPLY_POS_5_VOLT_SERVO  26,0,8
#define POWER_SUPPLY_POS_5_VOLT_SERVO_ECV AECT1,0.025,  0.0
#define POWER_SUPPLY_POS_5_VOLT_SERVO_LIMITV LFLAG2,0.0,6.375,4.9,5.6,-0.5,0.5
#define ANG_MOM_COMP_PHASE_ERROR  27,0,8
#define ANG_MOM_COMP_PHASE_ERROR_ECV  AECT1,8.52, -377.0
#define ANG_MOM_COMP_PHASE_ERROR_LIMITV  (LFLAG2+LFLAG3),-377.0,1795.6,1215.0,1255.0,-500.0,20.0
#define TILT_PLATFORM_POSITION   28,0,8
#ifdef REAL_TILT
#define TILT_PLATFORM_POSITION_ECV  AECT1,1.44, 0.0
#define TILT_PLATFORM_POSITION_LIMITV  LFLAG2,0.0,367.2,0.0,360.0,0.0,360.0
#else
#define TILT_PLATFORM_POSITION_ECV  AECT1,0.1953,-25.0
#define TILT_PLATFORM_POSITION_LIMITV  LFLAG2,-25.0,25.0,-21.0,21.0,-21.0,21.0
#endif /* REAL_TILT */
#define TILT_BASE_POSITION   29,0,8
#ifdef REAL_TILT
#define TILT_BASE_POSITION_ECV   AECT1,1.44, 0.0
#define TILT_BASE_POSITION_LIMITV  LFLAG2,0.0,367.2,0.0,360.0,0.0,360.0
#else
#define TILT_BASE_POSITION_ECV   AECT1,0.1953,-25.0
#define TILT_BASE_POSITION_LIMITV  LFLAG2,-25.0,25.0,-21.0,21.0,-21.0,21.0
#endif /* REAL_TILT */
#define HEATERS_CURRENT    30,0,8
#define HEATERS_CURRENT_ECV   AECT1,0.14,  0.0
#define HEATERS_CURRENT_LIMITV   LFLAG2,0.0,35.7,27.0,29.0,-1.0,1.0
#define TELESCOPE_A_MOTOR_CURRENT  31,0,8
#define TELESCOPE_A_MOTOR_CURRENT_ECV  AECT1,0.0024,  0.0
#define TELESCOPE_A_MOTOR_CURRENT_LIMITV (LFLAG2+LFLAG4),0.0,0.612,0.1,0.4,-0.01,0.02
#define TELESCOPE_B_MOTOR_CURRENT  32,0,8
#define TELESCOPE_B_MOTOR_CURRENT_ECV  AECT1,0.0024,  0.0
#define TELESCOPE_B_MOTOR_CURRENT_LIMITV (LFLAG2+LFLAG4),0.0,0.612,0.1,0.4,-0.01,0.02
#define HALF_ANG_MIR_A_MOTOR_CURRENT  33,0,8
#define HALF_ANG_MIR_A_MOTOR_CURRENT_ECV AECT1,0.0024,  0.0
#define HALF_ANG_MIR_A_MOTOR_CURRENT_LIMITV (LFLAG2+LFLAG4),0.0,0.612,0.1,0.4,-0.01,0.02
#define HALF_ANG_MIR_B_MOTOR_CURRENT  34,0,8
#define HALF_ANG_MIR_B_MOTOR_CURRENT_ECV AECT1,0.0024,  0.0
#define HALF_ANG_MIR_B_MOTOR_CURRENT_LIMITV (LFLAG2+LFLAG4),0.0,0.612,0.1,0.4,-0.01,0.02
#define SERVO_A_PHASE_ERROR   35,0,8
#define SERVO_A_PHASE_ERROR_ECV   AECT1,0.01, -1.25
#define SERVO_A_PHASE_ERROR_LIMITV  (LFLAG2+LFLAG4),-1.25,1.25,-1.0,1.0,-1.3,-1.2
#define SERVO_B_PHASE_ERROR   36,0,8
#define SERVO_B_PHASE_ERROR_ECV   AECT1,0.01, -1.25
#define SERVO_B_PHASE_ERROR_LIMITV  (LFLAG2+LFLAG4),-1.25,1.25,-1.0,1.0,-1.3,-1.2
#define ANG_MOM_COMP_A_MOTOR_CURRENT  37,0,8
#define ANG_MOM_COMP_A_MOTOR_CURRENT_ECV AECT1,0.016,  0.0
#define ANG_MOM_COMP_A_MOTOR_CURRENT_LIMITV (LFLAG2+LFLAG3+LFLAG4),0.0,4.08,0.08,0.6,-0.01,0.02
#define ANG_MOM_COMP_B_MOTOR_CURRENT  38,0,8
#define ANG_MOM_COMP_B_MOTOR_CURRENT_ECV AECT1,0.016,  0.0
#define ANG_MOM_COMP_B_MOTOR_CURRENT_LIMITV (LFLAG2+LFLAG3+LFLAG4),0.0,4.08,0.08,0.6,-0.01,0.02
#define ANA_SPARE_40    39,0,0
#define ANA_SPARE_40_ECV   FILLAECT1
#define ANA_SPARE_40_LIMITV   FILLLIMIT
#define ANA_SPARE_41    40,0,0
#define ANA_SPARE_41_ECV   FILLAECT1
#define ANA_SPARE_41_LIMITV   FILLLIMIT
#define ANA_SPARE_42    41,0,0
#define ANA_SPARE_42_ECV   FILLAECT1
#define ANA_SPARE_42_LIMITV   FILLLIMIT
#define ANA_SPARE_43    42,0,0
#define ANA_SPARE_43_ECV   FILLAECT1
#define ANA_SPARE_43_LIMITV   FILLLIMIT
#define ANA_SPARE_44    43,0,0
#define ANA_SPARE_44_ECV   FILLAECT1
#define ANA_SPARE_44_LIMITV   FILLLIMIT


#define INST_ANA1    BAND_1_2_FPA_TEMPERATURE
#define INST_ANA1_ECV    BAND_1_2_FPA_TEMPERATURE_ECV
#define INST_ANA2    BAND_3_4_FPA_TEMPERATURE
#define INST_ANA2_ECV    BAND_3_4_FPA_TEMPERATURE_ECV
#define INST_ANA3    BAND_5_6_FPA_TEMPERATURE
#define INST_ANA3_ECV    BAND_5_6_FPA_TEMPERATURE_ECV
#define INST_ANA4    BAND_7_8_FPA_TEMPERATURE
#define INST_ANA4_ECV    BAND_7_8_FPA_TEMPERATURE_ECV
#define INST_ANA5    TELESCOPE_MOTOR_TEMPERATURE
#define INST_ANA5_ECV    TELESCOPE_MOTOR_TEMPERATURE_ECV
#define INST_ANA6    TILT_BASE_TEMPERATURE
#define INST_ANA6_ECV    TILT_BASE_TEMPERATURE_ECV
#define INST_ANA7    TILT_PLATFORM_TEMPERATURE
#define INST_ANA7_ECV    TILT_PLATFORM_TEMPERATURE_ECV
#define INST_ANA8    HALF_ANG_MIR_MOTOR_TEMPERATURE
#define INST_ANA8_ECV    HALF_ANG_MIR_MOTOR_TEMPERATURE_ECV
#define INST_ANA9    POWER_SUPPLY_A_INPUT_CURRENT
#define INST_ANA9_ECV    POWER_SUPPLY_A_INPUT_CURRENT_ECV
#define INST_ANA10    POWER_SUPPLY_B_INPUT_CURRENT
#define INST_ANA10_ECV    POWER_SUPPLY_B_INPUT_CURRENT_ECV
#define INST_ANA11    POWER_SUPPLY_POS_15_VOLT_ANALOG
#define INST_ANA11_ECV    POWER_SUPPLY_POS_15_VOLT_ANALOG_ECV
#define INST_ANA12    POWER_SUPPLY_NEG_15_VOLT_ANALOG
#define INST_ANA12_ECV    POWER_SUPPLY_NEG_15_VOLT_ANALOG_ECV
#define INST_ANA13    POWER_SUPPLY_POS_5_VOLT_LOGIC
#define INST_ANA13_ECV    POWER_SUPPLY_POS_5_VOLT_LOGIC_ECV
#define INST_ANA14    POWER_SUPPLY_TEMPERATURE
#define INST_ANA14_ECV    POWER_SUPPLY_TEMPERATURE_ECV
#define INST_ANA15    BAND_1_2_POST_AMP_TEMPERATURE
#define INST_ANA15_ECV    BAND_1_2_POST_AMP_TEMPERATURE_ECV
#define INST_ANA16    SERVO_DRIVER_TEMPERATURE
#define INST_ANA16_ECV    SERVO_DRIVER_TEMPERATURE_ECV
#define INST_ANA17    POWER_SUPPLY_POS_30_VOLT_SERVO
#define INST_ANA17_ECV    POWER_SUPPLY_POS_30_VOLT_SERVO_ECV
#define INST_ANA18    POWER_SUPPLY_POS_21_VOLT_SERVO
#define INST_ANA18_ECV    POWER_SUPPLY_POS_21_VOLT_SERVO_ECV
#define INST_ANA19    POWER_SUPPLY_NEG_21_VOLT_SERVO
#define INST_ANA19_ECV    POWER_SUPPLY_NEG_21_VOLT_SERVO_ECV
#define INST_ANA20    POWER_SUPPLY_POS_5_VOLT_SERVO
#define INST_ANA20_ECV    POWER_SUPPLY_POS_5_VOLT_SERVO_ECV
#define INST_ANA21    ANG_MOM_COMP_PHASE_ERROR
#define INST_ANA21_ECV    ANG_MOM_COMP_PHASE_ERROR_ECV
#define INST_ANA22    TILT_PLATFORM_POSITION
#define INST_ANA22_ECV    TILT_PLATFORM_POSITION_ECV
#define INST_ANA23    TILT_BASE_POSITION
#define INST_ANA23_ECV    TILT_BASE_POSITION_ECV
#define INST_ANA24    HEATERS_CURRENT
#define INST_ANA24_ECV    HEATERS_CURRENT_ECV
#define INST_ANA25    TELESCOPE_A_MOTOR_CURRENT
#define INST_ANA25_ECV    TELESCOPE_A_MOTOR_CURRENT_ECV
#define INST_ANA26    TELESCOPE_B_MOTOR_CURRENT
#define INST_ANA26_ECV    TELESCOPE_B_MOTOR_CURRENT_ECV
#define INST_ANA27    HALF_ANG_MIR_A_MOTOR_CURRENT
#define INST_ANA27_ECV    HALF_ANG_MIR_A_MOTOR_CURRENT_ECV
#define INST_ANA28    HALF_ANG_MIR_B_MOTOR_CURRENT
#define INST_ANA28_ECV    HALF_ANG_MIR_B_MOTOR_CURRENT_ECV
#define INST_ANA29    SERVO_A_PHASE_ERROR
#define INST_ANA29_ECV    SERVO_A_PHASE_ERROR_ECV
#define INST_ANA30    SERVO_B_PHASE_ERROR
#define INST_ANA30_ECV    SERVO_B_PHASE_ERROR_ECV
#define INST_ANA31    ANG_MOM_COMP_A_MOTOR_CURRENT
#define INST_ANA31_ECV    ANG_MOM_COMP_A_MOTOR_CURRENT_ECV
#define INST_ANA32    ANG_MOM_COMP_B_MOTOR_CURRENT
#define INST_ANA32_ECV    ANG_MOM_COMP_B_MOTOR_CURRENT_ECV
#define INST_ANA33    ANA_SPARE_40
#define INST_ANA33_ECV    ANA_SPARE_40_ECV
#define INST_ANA34    ANA_SPARE_41
#define INST_ANA34_ECV    ANA_SPARE_41_ECV
#define INST_ANA35    ANA_SPARE_42
#define INST_ANA35_ECV    ANA_SPARE_42_ECV
#define INST_ANA36    ANA_SPARE_43
#define INST_ANA36_ECV    ANA_SPARE_43_ECV
#define INST_ANA37    ANA_SPARE_44
#define INST_ANA37_ECV    ANA_SPARE_44_ECV
#define INST_ANA38    TLM_DUMMY
#define INST_ANA38_ECV    TLM_DUMMY_ECV
#define INST_ANA39    TLM_DUMMY
#define INST_ANA39_ECV    TLM_DUMMY_ECV
#define INST_ANA40    MSEC_GPS
#define INST_ANA40_ECV    MSEC_GPS_ECV

#define INST_DIS1    SERVO_A_B_SELECT
#define INST_DIS2    ANG_MOM_COMP_ON
#define INST_DIS3    SERVO_A_LOCK
#define INST_DIS4    SERVO_B_LOCK
#define INST_DIS5    TIMING_A_B_SELECT
#define INST_DIS6    TILT_A_ON
#define INST_DIS7    TILT_B_ON
#define INST_DIS8    TILT_TELEMETRY_ON
#define INST_DIS9    STOW_ON
#define INST_DIS10    STOW_ALIGNED
#define INST_DIS11    HEATERS_ENABLE
#define INST_DIS12    SOLAR_DOOR_STATUS
#define INST_DIS13    ANALOG_POWER_ON
#define INST_DIS14    TILT_PLATFORM_LIMIT
#define INST_DIS15    TILT_BASE_LIMIT
#define INST_DIS16    TILT_NADIR_ALIGNED
#define INST_DIS17    TILT_AFT_ALIGNED
#define INST_DIS18    TILT_FORWARD_ALIGNED
#define INST_DIS19    DATA_MODE_SELECT
#define INST_DIS20    HALF_ANG_MIRROR_SIDE
#define INST_DIS21    IMAGE_DATA_SYNC_VALID
#define INST_DIS22    ANG_MOM_COMP_AT_SPEED
#define INST_DIS23    DIS_SPARE_23
#define INST_DIS24    DIS_SPARE_24
#define INST_DIS25    TLM_DUMMY
#define INST_DIS26    TLM_DUMMY
#define INST_DIS27    TLM_DUMMY
#define INST_DIS28    TLM_DUMMY
#define INST_DIS29    TLM_DUMMY
#define INST_DIS30    TLM_DUMMY
#define INST_DIS31    TLM_DUMMY
#define INST_DIS32    TLM_DUMMY
